import Main from './pages/main/main.js'
import MainPage from './pages/main/mainPage.js'
import Patrol from './pages/patrol/patrol.js'
import PatrolList from './pages/patrol/list/patrolList.js'
import TodayPatrol from './pages/patrol/list/todayPatrol.js'
import Room from './pages/patrol/list/room.js'
import Report from './pages/report/report.js'
import gy from './pages/gy/gy.js'
import xncdc from './pages/gy/xncdc.js'
import nsc from './pages/gy/nsc.js'
import slc from './pages/gy/slc.js'
import qsc from './pages/gy/qsc.js'
import ejbz from './pages/gy/ejbz.js'
import jyj from './pages/gy/jyj.js'
import tnjyj from './pages/gy/tnjyj.js'
import pnstjc from './pages/gy/pnstjc.js'
import ysbf from './pages/gy/ysbf.js'

// import FCXBF from './pages/patrol/list/room/FCXBF.js'

import HistoryPatrol from './pages/patrol/history/historyPatrol.js'
import patrolDetail from './pages/patrol/qrcode/patrolDetail.js'
import scan from './pages/patrol/qrcode/scan.js'

const routes = [
	{
		path: '/',
		name: 'main',
		component: Main,
		redirect: '/main',
	},
	{
		path: '/main',
		name: 'main',
		component: Main,
		children: [
			{
				path: '',
				component: MainPage,
				meta: {
					cache: true,
				},
			},
			{
				path: 'patrol',
				name: 'patrol',
				component: Patrol,
				children: [
					
				]
			},
			{
				path: 'todayPatrol',
				name: 'todayPatrol',
				component: TodayPatrol,
				props: true,
				children: [
					
				]
			},
			{
				path: 'patrolList/:routeId',
				name: 'patrolList',
				component: PatrolList,
				props: true,
				children: [
					
				]
			},
			{
				path: 'report',
				name: 'report',
				component: Report,
				children: [
					
				]
			},
			{
				path: 'room/:roomId/:roomName',
				name: 'room',
				component: Room,
				props: true,
			},
			{
				path: 'gy',
				name: 'gy',
				component: gy,
			},
			{
				path: 'xncdc',
				name: 'xncdc',
				component: xncdc,
			},
			{
				path: 'nsc',
				name: 'nsc',
				component: nsc,
			},
			{
				path: 'slc',
				name: 'slc',
				component: slc,
			},
			{
				path: 'qsc',
				name: 'qsc',
				component: qsc,
			},
			{
				path: 'ejbz',
				name: 'ejbz',
				component: ejbz,
			},
			{
				path: 'jyj',
				name: 'jyj',
				component: jyj,
			},
			{
				path: 'tnjyj',
				name: 'tnjyj',
				component: tnjyj,
			},
			{
				path: 'pnstjc',
				name: 'pnstjc',
				component: pnstjc,
			},
			{
				path: 'ysbf',
				name: 'ysbf',
				component: ysbf,
			}, 
			{
				path: 'historyPatrol',
				name: 'historyPatrol',
				component: HistoryPatrol,
			},
			{
				path: 'scan',
				name: 'scan',
				component: scan,
			},
			{
				path: 'patrolDetail/:deviceId',
				name: 'patrolDetail',
				props: true,
				component: patrolDetail,
			},
		]
	}
]

export default routes